import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
import FontFaceObserver from "fontfaceobserver";
import store from "../store/index";
const routes: RouteRecordRaw[] = [
  {
    path: "/:pathMatch(.*)",
    redirect: "/",
  },
];
const router = createRouter({
  history: createWebHashHistory(), // 路由模式
  routes,
});
router.beforeEach((to, from, next) => {
  next();
});
export default router;
